package com.aegis.spring.config;

import com.aegis.core.constants.AegisCommonConstants;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author renogo
 *
 * @Version 1.0
 */
@ConfigurationProperties(prefix = "aegis.app")
public class AegisAppProperties {

    /**
     * 以下四个都是请求头
     */
    private String headerNameAppId = AegisCommonConstants.DEFAULT_APP_ID_NAME;

    private String headerNameTimestamp = AegisCommonConstants.DEFAULT_TIMESTAMP_NAME;

    private String headerNameNonce = AegisCommonConstants.DEFAULT_NONCE_NAME;

    private String headerSignature = AegisCommonConstants.DEFAULT_SIGNATURE_NAME;

    /**
     * 签名过期时间，单位毫秒
     */
    private Long expire = 1000 * 60L;

    public Long getExpire() {
        return expire;
    }

    public void setExpire(Long expire) {
        this.expire = expire;
    }

    public String getHeaderNameAppId() {
        return headerNameAppId;
    }

    public void setHeaderNameAppId(String headerNameAppId) {
        this.headerNameAppId = headerNameAppId;
    }

    public String getHeaderNameTimestamp() {
        return headerNameTimestamp;
    }

    public void setHeaderNameTimestamp(String headerNameTimestamp) {
        this.headerNameTimestamp = headerNameTimestamp;
    }

    public String getHeaderNameNonce() {
        return headerNameNonce;
    }

    public void setHeaderNameNonce(String headerNameNonce) {
        this.headerNameNonce = headerNameNonce;
    }

    public String getHeaderSignature() {
        return headerSignature;
    }

    public void setHeaderSignature(String headerSignature) {
        this.headerSignature = headerSignature;
    }
}
